package com.hzw.saas.api.rss;

import java.util.List;

import com.hzw.saas.api.rss.bo.JournalUserSubBO;

/**
 * <p>
 * 期刊的用户订阅 服务类
 * </p>
 *
 * @author sonam
 * @since 2021-06-30
 */
public interface IJournalUserSubService{

    /**
     * 主键查询
     * @param pid
     * @return
     */
    JournalUserSubBO getById(String pid);

    /**
     * 通用的检索
     * @param journalUserSubBO
     * @return
     */
    List<JournalUserSubBO> query(JournalUserSubBO journalUserSubBO);

    /**
     * 通用的更新接
     * @param journalUserSubBO
     */
    void update(JournalUserSubBO journalUserSubBO);

    /**
     * 通用的删除
     * @param journalUserSubBO
     */
    void delete(JournalUserSubBO journalUserSubBO);

    /**
     * 通过主键删除
     * @param pid
     */
    void delete(String pid);

    List<JournalUserSubBO> findJournalUserSubByUserId(String userId);

    void addJournalUserSub(List<JournalUserSubBO> journalUserSubBOS);

    void updateJournalUserSub(List<JournalUserSubBO> journalUserSubBOS);

    /**
     * 根据登陆用户查询其订阅的文章
     */
    List<JournalUserSubBO> pushSubscribe(String userId);

    List<String> findAlreadySub(List<String> collect1,String userId);
}


